package com.qf.service;

import com.qf.domain.User;

import java.util.List;

public interface UserService {
    boolean checkUserName(String username);

    void register(User user);

    User login(String username, String password);

    List<User> selectByRole();

    List<User> selectByNameAndGender(String where, List<Object> params);

    void deleteById(int uid);

    User selectByUId(Integer uid);

    List<User> selectNoByNameAndGender(String where, List<Object> params);

    void updateFlag1ById(int uid);

    void updateFlag0ById(int uid);

    void updateUserById(String id, String username, String email, String gender);

}
